package biz.inv.dto;

import biz.master.dto.Product;

import java.io.Serializable;

/**
 * Created by rachatanawee on 2/13/14.
 */
public class Balance implements Serializable {
    private int productId;
    private double qty;
    private Product product;

    @Override
    public String toString() {
        return "Balance{" +
                "productId=" + productId +
                ", qty=" + qty +
                ", product=" + product +
                '}';
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Balance() {
        product = new Product();
    }

    public Balance(int productId, double qty) {
        this.productId = productId;
        this.qty = qty;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public double getQty() {
        return qty;
    }

    public void setQty(double qty) {
        this.qty = qty;
    }
}
